﻿@model Bibilioteca.Models.Autor

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

@if (Model.Id != 0)
{  

<fieldset>
    <legend>Autor</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Nombre)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Nombre)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Apellido)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.Apellido)
    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) | 
    @Html.ActionLink("Back to List", "Index")
</p>
}
else
{ 
     <p>Este usuario no existe </p>
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
}
